<?php

/**
 * Class used to interact with roles returned by Account EVE API.
 *
 * @package eveApi
 *
 */

/**
 * Include the file that provides the eveapi class
 *
 */
require_once('eveapi.class.php');

/**
 * class Account
 * @package eveApi
 *
 */
class Account extends eveapi{

	
	/**
	* getAccountStatus
	* Gets the account status
	*
	* @todo Convert the returned XML into a readable format
	* 
	* @return mixed SimpleXMLObject generated from API
	* 
	*/
	function getAccountStatus(){
		if(empty($this->characterID)){
			$this->addMsg("Account","Unable to get Account Status - no Character ID specified");
			return false;
		}
		$path = "/account/AccountStatus.xml.aspx";
		return $this->retreiveXML($path);
	}
	
	/**
	* getCharacters
	* 
	* @return mixed SimpleXMLObject generated from API
	* 
	*/
	function getCharacters(){
		$path = "/account/Characters.xml.aspx";
		$content = $this->retreiveXML($path);
		return $content;
	}
	
}


?>
